module tool{
    export class ImageLoader{
        public image:eui.Image
        public constructor(){
            
        }
        public load(str:string):void{
            RES.getResByUrl(str,this.completeHandler,this,RES.ResourceItem.TYPE_IMAGE);
        }
        private completeHandler(data:egret.Texture):void{
            if(this.image){
                this.image.source=data;
            }

        }
    }
}